package top.lgd.pojo.entity.person;

import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Getter;
import lombok.Setter;
import top.lgd.base.LgdEntity;

import javax.validation.constraints.Size;
import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * 个人工资表
 * @author YYJ
 * @version 1.0
 * @since 2024/4/13 9:56
 */
@Getter
@Setter
@TableName("person_salary")
public class Salary extends LgdEntity {

    private static final long serialVersionUID = 2488348697864447216L;

    /**
     * 日期
     * Index
     */
    private LocalDate salaryDate;

    /**
     * 月份
     * Index
     */
    @Size(max = 8)
    private String salaryMonth;

    /**
     * 基本工资
     */
    private BigDecimal baseIn;

    /**
     * 节日费
     */
    private BigDecimal festivalFee;

    /**
     * 福利费
     */
    private BigDecimal welfare;

    /**
     * 其他收入
     */
    private BigDecimal otherIn;

    /**
     * 税前
     */
    private BigDecimal beforeTax;

    /**
     * 公积金
     */
    private BigDecimal accumulationFund;

    /**
     * 社保
     */
    private BigDecimal socialSecurity;

    /**
     * 其他扣除
     */
    private BigDecimal otherOut;

    /**
     * 个税
     */
    private BigDecimal tax;

    /**
     * 税后
     */
    private BigDecimal afterTax;

    @TableField(exist = false)
    private LocalDate startDate;

    @TableField(exist = false)
    private LocalDate endDate;
}